package rpc

import (
	"leaf/core/msg"
	"reflect"
)

var RPC_MSG = map[uint16]reflect.Type{
	1: reflect.TypeOf(&RpcNil{}),
	2: reflect.TypeOf(&RpcHandlerInfos{}),
	3: reflect.TypeOf(&RpcHeart{}),
	4: reflect.TypeOf(&RpcNodeUpdate{}),
	5: reflect.TypeOf(&RpcNodeDelete{}),
}

func init() {
	msg.RegisterRpcMessage(RPC_MSG)
}
